package com.ap.core.domain;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;
import org.hibernate.annotations.TypeDef;
import org.joda.time.LocalDateTime;

/**
 * User: Ranjit.Singh
 */
@Entity
@Table(name = "T_RECONCILIATION_PARAMETER")
@AttributeOverride(name = "id",column = @Column(name = "SERIAL_NUMBER"))
@TypeDef(name = "id", typeClass = String.class)
public class ReconciliationParameter extends Identifiable<String>{

    @Column(name = "START_TIME")
    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime")
    private LocalDateTime cycleStartTimeStmp;

    @Column(name = "END_TIME")
    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime")
    private LocalDateTime cycleEndTimeStmp;
    
    
    @Column(name = "RECON_CUTOFF_GRACE_PERIOD")
    private Integer reconCutoffGraceSeconds;

    protected ReconciliationParameter(){}

    public LocalDateTime getCycleEndTimeStmp() {
        return cycleEndTimeStmp;
    }

    public LocalDateTime getCycleStartTimeStmp() {
        return cycleStartTimeStmp;
    }

	public Integer getReconCutoffGraceSeconds() {
		return reconCutoffGraceSeconds;
	}

}